import React, {Component} from 'react';

class Comment extends Component {
    constructor(props) {
        super(props)
    }
    handleClick() {
        this.props.refreshPraent()
    }
    render() {
        const {name, content} = this.props.comment
        return (
            <div className="Comment">
                <p>内容：{content}</p>
                <i>评论人：{name}</i>
                <button onClick={ this.handleClick.bind(this) }>提交</button>
            </div>
        );
    }
}

export default Comment;
